import { service } from "../http/request";

/**
 * 获取部门
 */
const getDepartment = () => {
  return service({
    method:'get',
    url:'/system/basic/department/'
  })
}

/**
 * 添加部門
 */
const addDepartment = (params) => {
  return service({
    method:'post',
    url: '/system/basic/department/',
    data: params
  })
}

/**
 * 刪除部門
 */
const delDepartment = (id) => {
  return service({
    method:'delete',
    url: '/system/basic/department/' + id
  })
}

export default {
  getDepartment,
  addDepartment,
  delDepartment
}
